import axios from '~/plugins/axios';

//今日预警数据
export const todayWarndata = function({commit, state}, preload) {
    return axios.get(process.env.baseUrl + '/alert/getTodayRecordCount', {
        params: preload || {}
    })
};

//获取累计低价、假货、非白名单数量
export const countNumberwarn = function({commit, state}, preload) {
    return axios.get(process.env.baseUrl + '/alert/getAllRecordCount', {
        params: preload || {}
    })
};

//多条件查询低价列表
export const lowListwarn = function({commit, state}, preload) {
    return axios.get(process.env.baseUrl + '/alert/getSkuLowList', {
        params: preload || {}
    })
};

//多条件查询假货列表
export const fakeListwarn = function({commit, state}, preload) {
    return axios.get(process.env.baseUrl + '/alert/getSkuFakeList', {
        params: preload || {}
    })
};

//根据品牌名称、平台、运营员查询非授权品牌汇总信息
export const RptBrandAllListwarn = function({commit, state}, preload) {
    return axios.get(process.env.baseUrl + '/alert/getRptBrandAllList', {
        params: preload || {}
    })
};

//预警明细列表——低价查询
export const getSkuLowDetailswarn = function({commit, state}, preload) {
    return axios.get(process.env.baseUrl + '/alert/getSkuDetails', {
        params: preload || {}
    })
};

//预警管理——明细列表——非授权查询
export const getRptBrandDetailswarn = function({commit, state}, preload) {
    return axios.get(process.env.baseUrl + '/alert/getRptBrandDetails', {
        params: preload || {}
    })
};

//获取关键词列表
export const getKeywordsListwarn = function({commit, state}, preload) {
    return axios.get(process.env.baseUrl + '/keyword/getListByName', {
        params: preload || {}
    })
};